<?php

echo'

<html><head>
<meta charset="utf-8" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> 
</head>
<body>

<form action="index.php" method="POST" name="frmdo" id="frmdo" target="_self">

<table border=1 align="center">
<tr><td colspan="2" align="center">Ingresa tus datos</td></tr>
<tr><td>Nombre:</td><td><input type="text" name="nombre" placeholder="Mayra" required="required"></td></tr>
<tr><td>Apellido paterno:</td><td><input type="text" name="app" placeholder="Rojas" required="required"></td></tr>
<tr><td>Apellido materno:</td><td><input type="text" name="apm" placeholder="Padilla" required="required"></td></tr>
<tr><td>Edad:</td><td><input type="text" name="edad" placeholder="21" required="required"></td></tr>
<tr><td>Ocupaci&oacute;n:</td><td><input type="text" name="ocupacion" placeholder="Estudiante" required="required"></td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="Guardar"> </td></tr>
</table>

</form>
<p>&nbsp;</p>
<div id="guardar">&nbsp;</div>
<a href=index.html>Regresar</a>

</body>
</html>';
?>
<script type='text/javascript'>
$(function (mostrardatos) {
	$('#frmdo').submit(function (mostrardatos) {
		mostrardatos.preventDefault()
		$('#guardar').load('index.php?' + $('#frmdo').serialize())
	})
})
</script>
